home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / BOBOLI.ZIP / SRC / UMK.H < prev   
Encoding:
C/C++ Source or Header  |  1996-04-25  |  2.1 KB  |  50 lines

  1. #ifndef _umk_gogo
  2. #define _umk_gogo
  3.  
  4. #include "mgraph.h"
  5.  
  6. typedef struct {
  7.   word width,height;
  8.   word size;
  9.   byte *img;
  10. } umkrec;
  11.  
  12. typedef umkrec umkset[256];
  13. typedef byte colmat[256];
  14.  
  15. void umk_free(umkset u);
  16. int umk_load(char *name,umkset u);
  17. int mat_load(char *name,colmat c);
  18. /* NOTE: DO NOT DRAW TO PHYSICAL SCREEN WITH THESE PROCEDURES!!! */
  19. void umk_draw(int x,int y,umkrec u,scrntype scrn);
  20. void umk_255draw(int x,int y,byte c,umkrec u,scrntype scrn);
  21. void umk_solid(int x,int y,byte col,umkrec u,scrntype scrn);
  22. void umk_shadowlimit(rect r,int x,int y,colmat col,umkrec u,scrntype scrn);
  23. void umk_255limit(rect r,int x,int y,byte col,umkrec u,scrntype scrn);
  24. void umk_limit(rect r,int x,int y,umkrec u,scrntype scrn);
  25. void umk_partial(int x,int y,byte amt,umkrec u,scrntype scrn);
  26. void umk_unpartial(int x,int y,byte amt,umkrec u,scrntype scrn);
  27. void umk_colour(int x,int y,byte c,umkrec u,scrntype scrn);
  28. void umk_colour2(int x,int y,byte c,umkrec u,scrntype scrn);
  29. void umk_robot(int x,int y,byte c,umkrec u,scrntype scrn);
  30. void umk_phase(int x,int y,umkrec u,scrntype scrn);
  31. void umk_shadow(int x,int y,colmat c,umkrec u,scrntype scrn);
  32. void umk_altern(int x,int y,colmat c,umkrec u,scrntype scrn);
  33. /* now flipped versions of all of those draw routines */
  34. void umk_flip(int x,int y,umkrec u,scrntype scrn);
  35. void umk_flip_solid(int x,int y,byte col,umkrec u,scrntype scrn);
  36. void umk_flip_limit(rect r,int x,int y,umkrec u,scrntype scrn);
  37. void umk_flip_partial(int x,int y,byte amt,umkrec u,scrntype scrn);
  38. void umk_flip_unpartial(int x,int y,byte amt,umkrec u,scrntype scrn);
  39. void umk_flip_colour(int x,int y,byte c,umkrec u,scrntype scrn);
  40. void umk_flip_colour2(int x,int y,byte c,umkrec u,scrntype scrn);
  41. void umk_flip_robot(int x,int y,byte c,umkrec u,scrntype scrn);
  42. void umk_flip_phase(int x,int y,umkrec u,scrntype scrn);
  43. void umk_flip_shadow(int x,int y,colmat c,umkrec u,scrntype scrn);
  44. void umk_flip_altern(int x,int y,colmat c,umkrec u,scrntype scrn);
  45.  
  46. void shadowbox(int x,int y,int x2,int y2,scrntype scrn,colmat c);
  47. void shadowscr(scrntype scrn,colmat c);
  48.  
  49. #endif
  50.